﻿using System.Windows.Input;
using YWM.Dto;

namespace PLCWpfTest.Models
{
    public class MenuModel : EmptyDto
    {
        public string Code { get; set; }

        private string _displayName;
        public string DisplayName
        {
            get { return _displayName; }
            set { SetProperty(ref _displayName, value); }
        }

        private string _target;
        public string Target
        {
            get { return _target; }
            set { SetProperty(ref _target, value); }
        }

        public bool CanSelect { get; set; }

        private bool _isSelected;
        public bool IsSelected
        {
            get { return _isSelected; }
            set { SetProperty(ref _isSelected, value); }
        }

        public ICommand SelectCommand { get; set; }
    }
}
